<?
return [
    'datetimeFormat' => 'm/d/Y g:i A',
    'quality' => 90,
    'defaultPermission' => 0775,

    'sources' => [
        'default' => [],
    ],

    'createThumb' => true,
    'thumbFolderName' => '_thumbs',
    'excludeDirectoryNames' => ['.tmb', '.quarantine'],
    'maxFileSize' => '8mb',

    'allowCrossOrigin' => false,
    'allowReplaceSourceFile' => true,

    'baseurl' => ((isset($_SERVER['HTTPS']) and $_SERVER['HTTPS']) ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . '/',
    'root' => __DIR__,
    'extensions' => ['jpg', 'png', 'gif', 'jpeg'],
    'imageExtensions' => ['jpg', 'png', 'gif', 'jpeg'],

	'debug' => JODIT_DEBUG,
	'accessControl' => [
		[
			'role'                => '*',

			'extensions'          => '*',
			'path'                => '/',

			'FILES'               => true,
			'FILE_MOVE'           => true,
			'FILE_UPLOAD'         => true,
			'FILE_UPLOAD_REMOTE'  => true,
			'FILE_REMOVE'         => true,
			'FILE_RENAME'         => true,

			'FOLDERS'             => true,
			'FOLDER_MOVE'         => true,
			'FOLDER_REMOVE'       => true,
			'FOLDER_RENAME'       => true,

			'IMAGE_RESIZE'        => true,
			'IMAGE_CROP'          => true,
		],
		[
			'role'                => '*',

			'extensions'          => 'exe,bat,com,sh,swf',
		
			'FILE_MOVE'           => false,
			'FILE_UPLOAD'         => false,
			'FILE_UPLOAD_REMOTE'  => false,
			'FILE_RENAME'         => false,
		]
	],

	'roleSessionVar' =>'JoditUserRole',


];